<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnFloorToSiteLocationMall extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('site_location_mall', function (Blueprint $table) {
            $table->string('floorSymbioticBrand', 500)->after('lat')->default('')->comment('楼层共生品牌');
            $table->string('recommendFloor', 12)->after('lat')->default('')->comment('推荐楼层');
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('site_location_mall', function (Blueprint $table) {
            $table->dropColumn('recommendFloor');
            $table->dropColumn('floorSymbioticBrand');
        });
    }
}
